package com.phz.springcloud.study.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.validation.constraints.NotBlank;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import lombok.Data;

@JsonIgnoreProperties(ignoreUnknown = true)
@Data
@Entity
public class User {
	// fields
	@Id
	@NotBlank
	private String phone;
	@NotBlank
	private String username;
	@NotBlank
	private String email;
	@NotBlank
	private String password;
	private Date registerTime;
	private String registerIp;
	private Date lastLoginTime;
	private String lastLoginIp;
	private Integer loginCount;
	private String resetKey;
	private String resetPwd;
	private Date errorTime;
	private Integer errorCount;
	private String errorIp;
	private Boolean activation;
	private String activationCode;

}
